#!/usr/bin/env python
#####################################
# Installation module for CrackMapExec
#####################################

# AUTHOR OF MODULE NAME
AUTHOR="David Kennedy (ReL1K), updated by Russ Swift (0xsalt)"

# DESCRIPTION OF THE MODULE
DESCRIPTION="This module will install/update CrackMapExec - pentesters AD tool"

# INSTALL TYPE GIT, SVN, FILE DOWNLOAD
# OPTIONS = GIT, SVN, FILE
INSTALL_TYPE="GIT"

# LOCATION OF THE FILE OR GIT/SVN REPOSITORY
REPOSITORY_LOCATION=""

# WHERE DO YOU WANT TO INSTALL IT
INSTALL_LOCATION=""

# DEPENDS FOR DEBIAN INSTALLS
DEBIAN="python3.7"

# DEPENDS FOR FEDORA INSTALLS
FEDORA="git"

# COMMANDS TO RUN AFTER
AFTER_COMMANDS="cd {INSTALL_LOCATION},rm -rf crackmapexec,git clone --recursive https://github.com/byt3bl33d3r/CrackMapExec crackmapexec,cd {INSTALL_LOCATION}crackmapexec,python3.7 -m pip install -r requirements.txt,python3.7 setup.py install"

# AUTOMATIC LAUNCH
LAUNCHER="crackmapexec"

# needed for install
#BYPASS_UPDATE="YES"
